#########################################################################
#  Independent Croatia
#########################################################################
event = {
	id = 2031
	random = no
	country = GER
	trigger = {
		owned = { province = 382 data = GER } #Zagreb
		NOT = {
			OR = {
				exists = YUG
				exists = CRO
			}
		}
	}
	name = "EVT_2031_NAME"
	desc = "EVT_2031_DESC"
	style = 0
	picture = "Croatia"

	date = { day = 1 month = january year = 1936 }
	offset = 7 # Check for trigger conditions every seven days
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ACTIONNAME2031A" # Create Croatia
		command = { type = independence which = CRO value = 1 }
		command = { type = trigger which = 2032 } # CRO
}
	action_b = {
		name = "ACTIONNAME2031B" # Let us take it all!
		command = { type = supplies value = 100 }
	}
}

event = { 
	id = 2033
	random = no
	country = GER
	name = "EVT_2032_NAME"
	desc = "EVT_2032_DESC"
	picture = "independent_croatia"
	style = 0
	

	action_a = {
		name = "ACTIONNAME2033A" # Install a Puppet
		command = { type = make_puppet which = CRO }
		command = { type = alliance which = CRO }
		command = { type = secedeprovince which = CRO value = 383 } #Quetzalcoatl
		command = { type = secedeprovince which = CRO value = 385 }
		command = { type = secedeprovince which = CRO value = 386 }
		command = { type = manpowerpool value = 15 } # Croats in the Wehrmacht
		command = { type = add_corps which = "I. Kroatisches Armeekorps" value = land where = 382 }
		command = { type = add_division which = "369. Kroatische Teufels-Division" value = infantry when = 2 } # 369. Kroatische Teufel-Division
		command = { type = add_division which = "373. Kroatische Tiger-Division" value = infantry when = 2 } # 373. Kroatische Tiger-Division
		command = { type = add_division which = "392. Kroatische Blaue-Division" value = infantry when = 2 } # 392. Kroatische Bleue-Division
	}
}

#########################################################################
#  Independent England
#########################################################################

event = {
	id = 2042
	random = no
	country = GER
	trigger = {
		NOT = { exists = U73 }
		control = { province = 19 data = GER } # London
		NOT = { control = { province = 11 data = -2 } } # Sunderland
		NOT = { control = { province = 12 data = -2 } } # Blackpool
		NOT = { control = { province = 13 data = -2 } } # Sheffield
		NOT = { control = { province = 14 data = -2 } } # Liverpool
		NOT = { control = { province = 15 data = -2 } } # Cardiff
		NOT = { control = { province = 16 data = -2 } } # Birmingham
		NOT = { control = { province = 17 data = -2 } } # Norwich
		NOT = { control = { province = 20 data = -2 } } # Dover
		NOT = { control = { province = 21 data = -2 } } # Porthsmouth
		NOT = { control = { province = 22 data = -2 } } # Bristol
		NOT = { control = { province = 23 data = -2 } } # Plymouth
	}
	name = "EVT_2042_NAME"
	desc = "EVT_2042_DESC"
	style = 0
	picture = "England_Invaded"

	date = { day = 1 month = january year = 1936 }
	offset = 7 # Check for trigger conditions every seven days
	deathdate = { day = 30 month = december year = 1999 }

	action_a = {
		name = "ACTIONNAME2042A" # Create Free England
		command = { type = independence which = U73 value = 1 }
		command = { type = trigger which = 2043 }
}
	action_b = {
		name = "ACTIONNAME2042B" # Let us take it all!
		command = { type = supplies value = 250 }
		command = { type = money value = 250 }
		
	}
}

event = { 
	id = 2043
	random = no
	country = GER
	name = "EVT_2043_NAME"
	desc = "EVT_2043_DESC"
	picture = "Axis_England"
	style = 0

	action_a = {
		name = "Excellent!" # Install a Puppet
		command = { type = make_puppet which = U73 }
		command = { type = manpowerpool value = 2 } # English in the Wehrmacht
		command = { type = add_corps which = "1. England-Legion" value = land where = 19 }
		command = { type = add_division which = "1. England-Legion" value = infantry when = 2 }
	}
}

#########################################################################
#  Japan prepares to setup Mengkukuo in former Shanxi area
#########################################################################
event = {
	id = 3832
	random = no
	country = JAP

	trigger = {
		AND = {
			# Mengukuo area:
			control = { province = 1206 data = JAP } # Kalgan
			control = { province = 1207 data = JAP } # Jining
			control = { province = 1208 data = JAP } # Hohhot
			control = { province = 1209 data = JAP } # Datong
			control = { province = 1386 data = JAP } # Xilinhot
			control = { province = 1398 data = JAP } # Erenhot
		
			# Provinces surrounding Mengukuo area:
			control = { province = 1225 data = JAP } # Taiyuan
			control = { province = 1205 data = JAP } # Beiping
			control = { province = 1210 data = JAP } # Baoding
			control = { province = 1211 data = JAP } # Shijiazhuang
			}
		}
		
	name = "EVT_3832_NAME"
	desc = "EVT_3832_DESC"
	picture = "JAP_meeting"
	style = 0

	date = { year = 1936 month = january day = 1 }
	offset = 1
	deathdate = { year = 1948 month = january day = 3 }

	action_a = {
		ai_chance = 90
		name = "EVT_3832_ACTA" #Prepare better action name
		command = { type = relation which = SOV value = -5 }
		command = { type = relation which = ENG value = -5 }
		command = { type = relation which = USA value = -5 }
		command = { type = independence which = MEN value = 1 }
		command = { type = dissent value = -1 }
		command = { type = trigger which = 3833 } # Setup Mengukuo 
	}

	action_b = {
		ai_chance = 10
		name = "EVT_3823_ACTB" # Let us take it all!
		command = { type = supplies value = 100 }
		command = { type = belligerence which = JAP value = 5 }
	}
}
#########################################################################
#  Japan installs puppet government in Mengukuo
#########################################################################
event = { 
	id = 3833
	random = no
	country = JAP

	name = "EVT_3833_NAME"
	desc = "EVT_3833_DESC"
	picture = "JAP_Mengukuosetup"
	style = 0

	action_a = {
		name = "OK" # Install a Puppet
		command = { type = make_puppet which = MEN }
		command = { type = secedeprovince which = MEN value = 1386 } # Xilinhot to Mengukuo
		command = { type = secedeprovince which = MAN value = 1397 } # Changde to Manchuria
		command = { type = secedeprovince which = MAN value = 1202 } # Dalian to Manchuria to prevent China getting it via event
		command = { type = trigger which = 3834 } # Japan Puppet Mengukuo
	}
}
#########################################################################
#  Mengukuo country setup
#########################################################################
event = { 
	id = 3834	
	random = no
	country = MEN

	name = "EVT_3834_NAME"
	desc = "EVT_3834_DESC"
	picture = "JAP_Mengukuosetup"
	style = 0

	action_a = {
		name = "EVT_2717_ACTA" 
		command = { type = access which = MAN }
		command = { type = set_domestic which = democratic value = 2 }
		command = { type = set_domestic which = political_left value = 3 }
		command = { type = headofstate which = 513001 }
		command = { type = headofgovernment which = 513002 }
		command = { type = foreignminister which = 513003 }
		command = { type = armamentminister which = 513004 }
		command = { type = ministerofsecurity which = 513005 }
		command = { type = ministerofintelligence which = 513006 }
		command = { type = chiefofstaff which = 513007 }
		command = { type = chiefofarmy which = 513008 }
		command = { type = chiefofnavy which = 513009 }
		command = { type = chiefofair which = 513010 }
		command = { type = manpowerpool value = 100 } 	# manpower
		command = { type = trigger which = 27400 } # Infra build up in capital # \db\events\AI_MAN.txt
		command = { type = trigger which = 3837 value = 3 } # Army after Infra allows to supply it
		}
	}

event = { 
	id = 3837	
	random = no
	country = MEN

	# triggered by MEN3834
	
	name = "EVT_3834_NAME"
	desc = "EVT_3834_DESC"
	picture = "JAP_Mengukuosetup"
	style = 0

	action_a = {
		name = "EVT_2717_ACTA" 
		#Army:
		command = { type = add_corps which = "Di'1 Mengkukuo Jun" value = land where = 1208 }
		command = { type = add_division which = "1. Mengkukuo Hoheishidan" value = militia when = 0 }
		command = { type = add_division which = "3. Mengkukuo Kiheishidan" value = cavalry when = 1 }
		command = { type = add_division which = "Roppou Suiyuan shsei butai" value = militia when = 0 }
		}
	}

#########################################################################
#  Japan sets up the China-Nanjing puppet
#########################################################################
event = {
	id = 3838
	random = no
	country = JAP

	trigger = {
		war = { country = JAP country = CHI }
		control = { province = 1235 data = JAP } # Nanjing
		control = { province = 1205 data = JAP } # Beiping
		control = { province = 1204 data = JAP } # Tianjin
		control = { province = 1225 data = JAP } # Taiyuan
		control = { province = 1216 data = JAP } # Jinan
		control = { province = 1215 data = JAP } # Qingdao
		control = { province = 1269 data = JAP } # Xi'an
		control = { province = 1228 data = JAP } # Zhengzhou
		control = { province = 1237 data = JAP } # Shanghai
		control = { province = 1238 data = JAP } # Hangzhou
		control = { province = 1221 data = JAP } # Hefei
		control = { province = 1232 data = JAP } # Hankuo
		control = { province = 1253 data = JAP } # Wuchang
		control = { province = 1255 data = JAP } # Changsha
		control = { province = 1251 data = JAP } # Nanchang
		control = { province = 1244 data = JAP } # Fuzhou
		control = { province = 1313 data = JAP } # Guangzhou
		control = { province = 1321 data = JAP } # Hainan
		control = { province = 1319 data = JAP } # Nanning
		control = { province = 1258 data = JAP } # Guilin
		OR = { # Control eastern half of China and bit of the west
			control = { province = 1276 data = JAP } # Lanzhou
			control = { province = 1280 data = JAP } # Chongqing
			control = { province = 1360 data = JAP } # Chengdu
			control = { province = 1364 data = JAP } # Guiyang
			control = { province = 1307 data = JAP } # Kunming
#			control = { province = 1305 data = JAP } # Jinghong
		}
		lost_national = { country = CHI value = 65 }
	}
		
	name = EVT_3838_NAME
	desc = EVT_3838_DESC
	picture = "U87_militaryparade"
	style = 0

	date = { day = 0 month = january year = 1936 }
	offset = 1
	deathdate = { day = 29 month = december year = 1999 }

	action_a = {
		ai_chance = 100
		name = "EVT_3838_ACTA"
		command = { type = relation which = CHI value = -150 }
		command = { type = independence which = U87 value = 1 }
		command = { type = alliance which = U87 }
		command = { type = trigger which = 3839 }
	}

	action_b = {
		ai_chance = 0
		name = "EVT_3838_ACTB"
		command = { type = belligerence which = JAP value = 5 }
	}
}

event = { 
	id = 3839
	random = no
	country = JAP
	
	name = EVT_3838_NAME
	desc = EVT_3839_DESC
	picture = "U87_militaryparade"
	style = 0

	action_a = {
		name = "OK"
		command = { type = make_puppet which = U87 }
		command = { type = trigger which = 3840 }
	}
}

event = { 
	id = 3840
	random = no
	country = U87

	name = EVT_3838_NAME
	desc = EVT_3840_DESC
	picture = "U87_militaryparade"
	style = 0

	action_a = {
		name = "OK" 
		command = { type = headofstate which = 807000 } # Wang Jingwei
		command = { type = headofgovernment which = 807006 } # Zhou Fohai
		command = { type = dissent value = 15 }
		command = { type = local_setflag which = RevoltResistenceFlag }
		}
	}
